package com.hi.hiparty.dao.query;

import org.apache.commons.lang.StringUtils;

public class UserQuery extends QueryBase {
	private String nickname; //昵称
	
	private String gender;   //性别
	
	private int weiboSync;   //新浪微博同步
	
	private int tqqSync;     //腾讯微博同步
	
	private int renrenSync;  //人人网同步
	
	private int kaixinSync;  //开心网同步
	
	public String getNickname() {
		return nickname;
	}
	
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public void setNicknameLike(String nickname) {
		if(StringUtils.isBlank(nickname))
		this.nickname = '%' + nickname + '%';
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public int getWeiboSync() {
		return weiboSync;
	}

	public void setWeiboSync(int weiboSync) {
		this.weiboSync = weiboSync;
	}

	public int getTqqSync() {
		return tqqSync;
	}

	public void setTqqSync(int tqqSync) {
		this.tqqSync = tqqSync;
	}

	public int getRenrenSync() {
		return renrenSync;
	}

	public void setRenrenSync(int renrenSync) {
		this.renrenSync = renrenSync;
	}

	public int getKaixinSync() {
		return kaixinSync;
	}

	public void setKaixinSync(int kaixinSync) {
		this.kaixinSync = kaixinSync;
	}
	
}
